package com.top10.common;

/**
 * 微信支付常量
 */
public class WXPayConst {

    public enum SignType {
        MD5, HMACSHA256
    }

    /**
     * 商户支付密码
     */
    public static  String PAYAPISECRET = "1517895361";

    /**
     * 商户号
     */
    public static String MCHID = "1517895361";

    /**
     * 商户密钥
     */
    public static String MCHKEY = "5e2PW6ZnRBLPS6HMOy3Ad4gAbwsEtYiq";

    public static final String FIELD_SIGN = "sign";


    /**
     * 服务商退款证书路径
     */
    public static String CERTIFICATE_PATH = "D:\\cert\\apiclient_cert.p12";

    /**
     * 统一下单请求地址
     */
    public static final String WXPAY_UNIFIEDORDER_GATEWAY = "https://api.mch.weixin.qq.com/pay/unifiedorder";

    /**
     * 退款请求地址
     */
    public static final String WXPAY_REFUND_GATEWAY = "https://api.mch.weixin.qq.com/secapi/pay/refund";

    /**
     * 下单回调地址（异步通知）
     */
    public static final String ORDER_NOTIFYURL = "http://112.74.208.66:8999/top10-app/wx/manager/asynNotify.action";

    public static final String PAY_WALLET_NOTIFYURL = "";

    public static final String NOTIFY_RESPONSE_BODY =  "<xml>\n" +
            "  <return_code><![CDATA[SUCCESS]]></return_code>\n" +
            "  <return_msg><![CDATA[OK]]></return_msg>\n" +
            "</xml>";

    public static final String FAIL     = "FAIL";
    public static final String SUCCESS  = "SUCCESS";

    public static final int PAY_TYPE = 2; //支付类型，2表示微信支付
}